import requests
from bs4 import BeautifulSoup

url = 'https://www.qishu66.com/'
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0'}

response = requests.get(url, headers=headers)
response.encoding = response.apparent_encoding
# <a href="/kehuan/txt41544.html" title="江东突击营全文txt下载" target="_blank">江东突击营</a>
if response.status_code == 200:
    soup = BeautifulSoup(response.text, 'html.parser')
    book_info = soup.find_all(target='_blank')
    for book in book_info:
        book_name = book.get_text()
        book_url = book.get('href')
        print(book_name, book_url)
